Path: blob/master/Part 3 - Classification/Logistic Regression/[R] Logistic Regression.ipynb
1009 views
Kernel: R
Logistic Regression
Data preprocessing
In [1]:
In [2]:
Out[2]:
In [3]:
In [10]:
Out[10]:
In [11]:
Out[11]:
In [4]:
In [13]:
Out[13]:
In [5]:
Out[5]:
Fitting Logistic Regreession to the Training set
In [6]:
Predicting the Test set results
In [7]:
In [8]:
Out[8]:
In [9]:
In [20]:
Out[20]:
Making the Confusion Matrix
In [10]:
In [11]:
Out[11]:
y_pred
0 1
0 49 2
1 11 18
classifier made 49 + 18 = 67 correct prediction and 11 + 2 = 13 incoreect predictions.
Visualizing the Training set results
In [12]:
In [13]:
In [25]:
Out[25]:
Visualizing the Test set results
In [26]:
In [27]:
Out[27]: